package com.ten.course.fegin;

import com.ten.common.core.entity.EduTeacher;
import com.ten.common.core.entity.TbMember;
import com.ten.common.core.vo.Result;
import com.ten.course.factory.EduTeacherFeignFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author ：Wqw
 * @date ：Created in 2022/11/19 15:30
 * @description：
 * @modified By：
 * @version:
 */
//value:调用远程微服务的名称
@FeignClient(value = "education-teacher",fallbackFactory = EduTeacherFeignFactory.class)
@Repository
public interface EduTeacherFeign {
    /**根据讲师手机查询讲师信息*/
    @PostMapping("/core/teacher/getTeacherByMobile/{mobile}")
    public Result<EduTeacher> getTeacherByMobile(@PathVariable String mobile);

    @GetMapping("/core/teacher/getTeacherById/{id}")
    Result<EduTeacher> getTeacherById(@PathVariable String id);
}
